<?php
class ORMpz_ecom_purchase_option {
  public function toObj($args) {
    $obj = new stdClass();
    if (isset($args->track_id)) {
      $obj->track_id =  $args->track_id;
    }
    if (isset($args->attribute_track_id)) {
      $obj->attribute_track_id =  $args->attribute_track_id;
    }
    if (isset($args->option_id)) {
      $obj->option_id =  $args->option_id;
    }
    if (isset($args->name)) {
      $obj->name =  $args->name;
    }
    return $obj;
  }
}
?>
